package utils;

import java.util.Iterator;

public class PriceCalculator{
	
	public static float getPrice(Iterator<Dish> it){
		float price = 0;
		while(it.hasNext()){
			Dish element = it.next();
			price += element.getPrice();
		}
		return price;
	}
	
	public static float getTaxes(float price){
		return price*(float)0.13925;
	}
	
	public static float getTotalPrice(float price){
		return price*(1+(float)0.13925);
	}
}
